package com.smart.system.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.smart.common.annotation.Excel;
import com.smart.system.domain.AttendanceRecord;
import com.smart.system.domain.Employee;
import com.smart.system.domain.EmployeeTrajectory;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;


@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class NowEmployeeTrajectoryVo  extends Employee {

    /**
     * 区域id
     */
    @Schema(description = "区域id")
    private Integer areaId;

    /**
     * 最后轨迹
     */
    @Schema(description ="最后轨迹")
    private EmployeeTrajectory trajectory;

    /** 用户当前状态 **/
    @Excel(name = "用户状态对象")
    @Schema(description ="用户当前状态,-1视为异常,0,1作业中,2旷工3请假4异常5休息")
    @TableField(exist = false)
    private String attendanceRecord;

    /** 用户今日轨迹 **/
    @Schema(description ="用户今日轨迹")
    @TableField(exist = false)
    private List<EmployeeTrajectory> employeeTrajectories;
}
